<!DOCTYPE html>

    <script src="{{static('js/jquery.min.js')}}"></script>
<html class="loaded"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <title>起点搜书_起点中文网</title>
    <meta name="description" content="搜索最新最快原创小说,搜索您最喜爱的小说,尽在起点中文网">
    <meta name="keywords" content="搜索小说,搜书,搜小说,搜图书,搜作者">
    <meta name="robots" content="all">
    <meta name="googlebot" content="all">
    <meta name="baiduspider" content="all">
    <meta http-equiv="mobile-agent" content="format=wml; url=https://m.qidian.com">
    <meta http-equiv="mobile-agent" content="format=xhtml; url=https://m.qidian.com">
    <meta http-equiv="mobile-agent" content="format=html5; url=https://h5.qidian.com/bookstore.html">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="renderer" content="webkit">
    <script async="" src="{{ static('js/index/yep.min.js')}}"></script><script src="{{ static('js/index/stats.js')}}" name="MTAH5" sid="500451537"></script><script>
        document.domain = 'qidian.com';
    </script>
    <script>
        var speedTimer = [],
                speedZero = new Date().getTime();
    </script>


<link data-ignore="true" rel="shortcut icon" type="image/x-icon" href="https://qidian.gtimg.com/qd/favicon/qd_icon.c443c.ico">
<link data-ignore="true" rel="Bookmark" type="image/x-icon" href="https://qidian.gtimg.com/qd/favicon/qd_icon.c443c.ico">


    
<link rel="stylesheet" data-ignore="true" href="{{ static('css/search/Button.e5a3e.css')}}">
    
<link charset="utf-8" rel="stylesheet" href="{{ static('css/search/Autocomplete.css')}}"><link charset="utf-8" rel="stylesheet" href="{{ static('css/search/Dropdown.css')}}"><link charset="utf-8" rel="stylesheet" href="{{ static('css/search/LightTip.css')}}"><link charset="utf-8" rel="stylesheet" href="{{ static('css/search/Popup.css')}}"><style name="lbf-overlay">.lbf-overlay { position:fixed; top:0; left:0;}</style></head>
<body style="zoom: 1;">

<div class="wrap">
    
    
<div id="pin-nav" class="pin-nav-wrap need-search" data-l1="40">
    <div class="box-center cf">
        <div class="nav-list site-nav fl">
            <ul>
                <li><a href="/" target="" data-eid="qd_A47">首页</a></li>
                <li><a href="{{ url('book:book', args=(2,)) }}" target="" data-eid="qd_A48">都市</a></li>
                <li><a href="{{ url('book:book', args=(3,)) }}" target="" data-eid="qd_A49">仙侠</a></li>
                <li><a href="{{ url('book:book', args=(4,)) }}" target="" data-eid="qd_A50">科幻</a></li>
                <li><a href="{{ url('book:book', args=(5,)) }}" target="" data-eid="qd_A56">游戏</a></li>
                <li><a href="{{ url('book:book', args=(6,)) }}" target="" data-eid="qd_A52">历史</a></li>
                <li><a href="{{ url("index:rankings") }}" target="_blank" data-eid="qd_A53">排行</a></li>
            </ul>
        </div>
        <div class="nav-list min-user fr">
            <ul>
                <li id="min-search">
                    <form id="formUrl" action="/search/" method="get">
                        <label id="pin-search" for="topSearchSubmit" data-eid="qd_A62">🔍
                        </label>
                        <input id="pin-input" class="pin-input hide" type="text" name="q" placeholder="北颂">
                        <input class="submit-input" type="submit" id="topSearchSubmit" data-eid="qd_A62">
                    </form>
                </li>
                <li class="line"></li>
                <li class="sign-out hidden">
                    <a id="pin-login" href="javascript:" data-eid="qd_A64">登录</a>
                    <a class="reg" href="https://passport.qidian.com/reg.html?appid=10&amp;areaid=1&amp;target=iframe&amp;ticket=1&amp;auto=1&amp;autotime=30&amp;returnUrl=https%3A%2F%2Fwww.qidian.com" target="_blank">注册</a>
                </li>
                <li class="sign-in">
                        {% if user.id %}
                         <a href="{{ url('user:user_info') }}" target="_blank" data-eid="qd_A65">
                        <i id="nav-user-name">{{ user.username }}</i></a>
                    {% else %}
                        <a href="{{ url('user:login') }}" target="_blank" data-eid="qd_A65">
                        <i id="nav-user-name">请先登录</i></a>
                    {% endif %}
                </li>
                <li class="line"></li>
                <li class="book-shelf" id="top-book-shelf">
                    <a href="{{ url('user:my_book_list') }}" target="_blank" data-eid="qd_A63"><i>我的书架
                    </i></a></li>
            </ul>
        </div>
    </div>
</div>

    <div class="search-container" data-l1="2">
        <div class="search-wrap cf">
            <input type="text" id="s-box" value="" autocomplete="off"><a class="search-btn" id="search-btn" onclick="search_get()" href="javascript:" data-eid="qd_S01">搜索</a>
        </div>
    </div>
    <div class="result-wrap box-center cf">

{#       当搜索有数据的时候显示这个#}
        <div id="aaabbb" class="main-content-wrap fl">
            
            <div id="result-list" data-l1="3">
            
            <div class="book-img-text">
                    <ul>
                 {% for i in book %}
                        <li class="res-book-item" data-bid="{{ i._object.id }}" data-rid="{{ loop.index }}">
                            <div class="book-img-box">
                                <a href="{{ url('book:book_info', args=(i._object.id,)) }}" data-eid="qd_S23" data-bid="{{ i._object.id }}" target="_blank"><img src="{{ i._object.book_image }}"></a>
                            </div>
                            <div class="book-mid-info">
                                <h4><a href="{{ url('book:book_info', args=(i._object.id,)) }}" target="_blank" data-eid="qd_S24" data-bid="{{ i._object.id }}">{{ i._object.name }}</a></h4>
                                <p class="author">
                                    <img src="//q2apgq6sj.bkt.clouddn.com/index_user.png"><a class="name" href="#" target="_blank" data-eid="qd_S25">{{ i._object.author }}</a><em>|</em><a href="{{ url('book:book', args=(i._object.group.id, )) }}" target="_blank" data-eid="qd_S26">{{ i._object.group.name }}</a><em>|</em>
                                    {% if i._object.status %}
                                    <span>完本</span>
                                    {% else %}
                                    <span>连载</span>
                                    {% endif %}
                                </p>
                                <p class="intro">
                                    {{ i._object.title }}
                                </p>
                                <p class="update"><a href="{{ url('book:book_content') }}?book={{ i._object.id }}&num={{ i._object.book_info_set.order_by("order_id").last().order_id }}" target="_blank">{{ i._object.book_info_set.order_by("order_id").last().content_name }}</a><em>·</em><span></span>
                                </p>
                            </div>
                            <div class="book-right-info">
                                <p class="btn">
                                    <a class="red-btn" href="{{ url('book:book_info', args=(i._object.id,)) }}" target="_blank" data-eid="qd_S21">书籍详情</a>

                                    <a class="blue-btn add-book" href="javascript:" data-eid="qd_S22" data-bookid="1016572786" onclick="book_list({{ i._object.id }})" data-bid="1016572786">加入书架</a>

                                </p>
                            </div>
                        </li>
                {% endfor %}


                    </ul>
                </div>
            </div>
        </div>

{#        当搜索没有数据的时候显示这个， 如何随机推荐一些数据给他#}
        <div id="bbbccc" class="main-content-wrap fl" style="display: none">
            <div class="no-result-wrap" data-l1="3">
                <div class="no-result-img">
                    <img src="http://q2apgq6sj.bkt.clouddn.com/not_book.jpeg">
                </div>
                <h3>没有找到 "{{ query }}" 关键词</h3>
                <p>你也可以去<a class="blue" href="{{ url('index:all') }}" target="_blank" data-eid="qd_S14">全部作品</a>找书</p>
            </div>


            <div id="result-list" data-l1="3">

                     <h3 class="search-title lang">编辑推荐<i>·</i>好书</h3>

            <div class="book-img-text">
             <ul>

                 {% for i in tj_book %}
                        <li class="res-book-item" data-bid="{{ i.id }}" data-rid="{{ loop.index }}">
                            <div class="book-img-box">
                                <a href="{{ url('book:book_info', args=(i.id,)) }}" data-eid="qd_S23" data-bid="{{ i.id }}" target="_blank"><img src="{{ i.book_image }}"></a>
                            </div>
                            <div class="book-mid-info">
                                <h4><a href="{{ url('book:book_info', args=(i.id,)) }}" target="_blank" data-eid="qd_S24" data-bid="{{ i.id }}">{{ i.name }}</a></h4>
                                <p class="author">
                                    <img src="//q2apgq6sj.bkt.clouddn.com/index_user.png"><a class="name" href="#" target="_blank" data-eid="qd_S25">{{ i.author }}</a><em>|</em><a href="https://www.qidian.com/xianxia" target="_blank" data-eid="qd_S26">{{ i.group.name }}</a><em>|</em>
                                    {% if i.status %}
                                    <span>完本</span>
                                    {% else %}
                                    <span>连载</span>
                                    {% endif %}
                                </p>
                                <p class="intro">
                                    {{ i.title }}
                                </p>
                                <p class="update"><a href="{{ url('book:book_content') }}?book={{ i.id }}&num={{  i.book_info_set.order_by("order_id").last().order_id }}" target="_blank">{{ i.book_info_set.order_by("order_id").last().content_name }}</a><em>·</em><span></span>
                                </p>
                            </div>
                            <div class="book-right-info">
                                <p class="btn">
                                    <a class="red-btn" href="{{ url('book:book_info', args=(i.id,)) }}" target="_blank" data-eid="qd_S21">书籍详情</a>

                                    <a class="blue-btn add-book" href="javascript:" data-eid="qd_S22" data-bookid="1016572786" onclick="book_list({{ i.id }})" data-bid="1016572786">加入书架</a>

                                </p>
                            </div>
                        </li>
                {% endfor %}



                    </ul>
                </div>
            </div>
            <div class="page-box cf" data-l1="3">
                <div class="pagination fr" data-eid="qd_C44" id="page-container" data-page="0" data-pagemax="0"></div>
            </div>
        </div>

        <div class="right-side-wrap fr" data-l1="4">
            <div class="other-rec-wrap">
            
                <h3 class="lang">本周强推</h3>
            
            <ul>
            
                {% for i in right_tj %}
                    <li data-rid="{{ loop.index }}">
                        <div class="img-box">
                            <a href="{{ url('book:book_info', args=(i.id,)) }}" data-eid="qd_S30" data-bid="1016716775" target="_blank"><img src="{{ i.book_image }}"></a>
                        </div>
                        <div class="book-info">
                            <h4><a href="{{ url('book:book_info', args=(i.id,)) }}" data-eid="qd_S31" data-bid="1016716775" target="_blank">{{ i.name }}</a></h4>
                            <p class="author"><img src="//q2apgq6sj.bkt.clouddn.com/index_user.png"><a href="#" target="_blank" data-eid="qd_S32">{{ i.author }}</a></p>
                            <p class="intro">{{ i.title }}</p>
                        </div>
                    </li>
                {% endfor %}
                </ul>
            </div>
        </div>



    </div>


<div class="laypage-main" style="margin-left: 20%">
{% if page.number > 1 %}
                      <a href="?page=1&q={{ query }}" class="laypage-last" title="首页">首页</a>
{% endif %}
               {% for i in  [2, 1]%}
                    {% if page.number - i < page.num_pages and page.number - i > 0 %}
                      <a href="?page={{ page.number - i  }}&q={{ query }}">{{ page.number - i }}</a>
                    {% endif %}
                {% endfor %}
                      <span class="laypage-curr">{{ page.number }}</span>
                {% for i in  range(1, 3)%}

                    {% if page.number + i <= page.num_pages %}
                      <a href="?page={{ page.number + i }}&q={{ query }}">{{ page.number + i }}</a>
                    {% endif %}
                {% endfor %}
            {% if page.number + 3 <= page.num_pages %}
                  <span>…</span>
            {% endif %}
                {% if page.has_next() %}
                    <a href="?page={{ page.number + 1 }}&q={{ query }}" class="laypage-next">下一页</a>
                    <a href="?page={{ page.num_pages }}&q={{ query }}" class="laypage-last" title="尾页">尾页</a>
            {% endif %}

</div>

    <div class="footer">
    <div class="box-center cf">
        <div class="footer-text">
            <p>上海网警提示：网络刷单是违法 切莫轻信有返利，网上交友套路多 卖惨要钱需当心，电子红包莫轻点 个人信息勿填写，仿冒客服来行骗 官方核实最重要，招工诈骗有套路 预交费用需谨慎，低价充值莫轻信 莫因游戏陷套路，连接WIFI要规范 确认安全再连接，抢购车票有章法 确认订单再付款，白条赊购慎使用 提升额度莫轻信，网购预付有风险 正规渠道很重要 如网民接到962110电话，请立即接听。</p>
        </div>
        <div class="friend-link">
            <em><a class="yuewen" href="https://www.yuewen.com/" target="_blank">阅文集团</a><cite>旗下网站：</cite></em>
                <a href="https://www.qidian.com/">起点中文网</a>
                <a href="https://www.qdmm.com/" target="_blank">起点女生网</a>
                <a href="http://chuangshi.qq.com/" target="_blank">创世中文网</a>
                <a href="http://yunqi.qq.com/" target="_blank">云起书院</a>
                <!--<a href="http://www.rongshuxia.com" target="_blank">榕树下</a>-->
                <a href="https://www.hongxiu.com/" target="_blank">红袖添香</a>
                <a href="https://www.readnovel.com/" target="_blank">小说阅读网</a>
                <a href="https://www.xs8.cn/" target="_blank">言情小说吧</a>
                <a href="http://www.xxsy.net/" target="_blank">潇湘书院</a>
                <a href="http://www.tingbook.com/" target="_blank">天方听书网</a>
                <a href="http://www.lrts.me/" target="_blank">懒人听书</a>
                <a href="http://yuedu.yuewen.com/" target="_blank">阅文悦读</a>
                <a href="https://www.yuewen.com/app.html#appqq" target="_blank">QQ阅读</a>
                <a href="https://www.yuewen.com/app.html#appqd" target="_blank">起点读书</a>
                <a href="https://www.yuewen.com/app.html#appzj" target="_blank">作家助手</a>
                <a href="https://www.webnovel.com/" target="_blank" title="Qidian International">起点国际版</a>
        </div>
        <div class="footer-menu dib-wrap">
            <a href="https://www.qidian.com/about/intro" target="_blank">关于起点</a>
            <a href="https://www.qidian.com/about/contact" target="_blank">联系我们</a>
            <a href="https://join.yuewen.com/" target="_blank">加入我们</a>
            <a href="https://www.qidian.com/help/index/2" target="_blank">帮助中心</a>
            <a href="http://123.206.70.240/online/?cid=0&amp;uid=10&amp;code=sOEt7yHh8+2e+J52ENHbLQ==" class="advice" target="_blank">提交建议</a>
            <!--<a href="http://bbs.qidian.com" target="_blank">起点论坛</a>-->
            <!--<a href="http://comic.qidian.com" target="_blank">动漫频道</a>-->
            <a href="https://jubao.yuewen.com/" target="_blank">举报中心</a>
        </div>
        <div class="copy-right">
            <p><span>Copyright © 2002-2019 www.qidian.com All Rights Reserved</span>版权所有 上海玄霆娱乐信息科技有限公司</p>
            <p>网站备案/许可证号：<a href="http://beian.miit.gov.cn/publish/query/indexFirst.action" target="_blank">沪B2-20080046-1</a>&nbsp;出版经营许可证：新出发沪批字第 U3718 号&nbsp;网络文化经营许可证：沪网文[2015]0081-031 新出网证（沪）字 010</p>
            <p>请所有作者发布作品时务必遵守国家互联网信息管理办法规定，我们拒绝任何色情小说，一经发现，即作删除！举报电话：010-59357051</p>
            <p>本站所收录的作品、社区话题、用户评论、用户上传内容或图片等均属用户个人行为。如前述内容侵害您的权益，欢迎举报投诉，一经核实，立即删除，本站不承担任何责任</p>
            <p>联系方式 总机 021-61870500 地址：中国（上海）自由贸易试验区碧波路690号6号楼101、201室</p>
        </div>
        
    </div>
</div>
</div>
<script>
   function fucn() {
       var t = document.getElementById("aaabbb");
       var f = document.getElementById("bbbccc");

    if ("{{ search }}"){
        t.style.display = "block";
        f.style.display = "none";

    }else {
        t.style.display = "none";
        f.style.display = "block";
    }
   }
   fucn()
</script>
<script>
    function search_get() {
        var value = document.getElementById("s-box").value;
        if (!value){
            alert("搜索内容不能为空");
            return
        }
        var send = document.getElementById("pin-search");
        var send_value =document.getElementById("pin-input");
        send_value.value = value;
        send.click()

    }
</script>

<script>
    function book_list(book_id) {
        var params = {
            "book_id": book_id
        };
        $.ajax({
            url:"{{ url('user:my_book_list') }}",
            type: "post",
            data: JSON.stringify(params),
                                        headers:{ "X-CSRFtoken":"{{ csrf_token }}"},
            contentType: "application/json",
            success: function (resp) {
                if (resp.code == "0"){
                    // 刷新当前界面
                    alert(resp.errmsg)
                }else if(resp.code){
                    alert(resp.errmsg);
                }else {
                    alert("请先登录")
                    location.href="/login"
                }
            }
        })
    }
</script>
<div class="lbf-autocomplete-suggestions" style="position: absolute; display: none; max-height: 384px; z-index: 9999;"></div><div class="lbf-popup lbf-dropdown vipClicks lbf-combobox-panel" style="width: 0px; min-width: 0px; height: auto;"><ul class="lbf-combobox-options"><li class="lbf-combobox-option"><a class="lbf-combobox-item" href="javascript:;" data-value="2">会员周点击</a></li><li class="lbf-combobox-option"><a class="lbf-combobox-item" href="javascript:;" data-value="7">会员月点击</a></li><li class="lbf-combobox-option"><a class="lbf-combobox-item" href="javascript:;" data-value="8">会员总点击</a></li></ul></div><div class="lbf-popup lbf-dropdown recomm lbf-combobox-panel" style="width: 0px; min-width: 70px; height: auto;"><ul class="lbf-combobox-options"><li class="lbf-combobox-option"><a class="lbf-combobox-item" href="javascript:;" data-value="9">周推荐票</a></li><li class="lbf-combobox-option"><a class="lbf-combobox-item" href="javascript:;" data-value="10">月推荐票</a></li><li class="lbf-combobox-option"><a class="lbf-combobox-item" href="javascript:;" data-value="3">总推荐票</a></li></ul></div></body></html>